﻿@{
    Layout = null;
  
}

<!DOCTYPE html>
<!-- saved from url=(0027)http://boolan.com/course/40 -->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <meta property="qc:admins" content="24314006454166375">
    <meta name="baidu-site-verification" content="KvVr95tdga">

    <meta name="keywords" content="STL，STL标准库，Standard Template Library，泛型编程">
    <meta name="description" content="本课程给予泛型编程（Generic Programming）之坚实训练。">


    <link href="http://boolan.com/course/favicon.ico" type="image/x-icon" rel="icon">
    <link href="http://boolan.com/course/favicon.ico" type="image/x-icon" rel="shortcut icon">
    <title>STL标准库与泛型编程 | 博览网 Boolan</title>
    <link href="~/Content/css/shared-layout-6715bec318.css" rel="stylesheet" />
    <style>
        * {
            -moz-box-sizing: border-box !important;
            -webkit-box-sizing: border-box !important;
            -o-box-sizing: border-box !important;
            -ms-box-sizing: border-box !important;
            box-sizing: border-box !important;
        }

        #top-hint {
            min-width: 1200px;
        }

        .navbar {
            min-width: 1200px;
        }

            .navbar:before, .navbar:after {
                content: " ";
                display: table;
            }

            .navbar:after {
                clear: both;
            }


        .footer {
            min-width: 1200px;
        }

            .footer:before, .footer:after {
                content: " ";
                display: table;
            }

            .footer:after {
                clear: both;
            }


            .footer li > a {
                line-height: normal;
            }


        .notification {
            position: absolute;
            width: 170px;
            background-color: #F3EFC4;
            color: #2c3e50;
            font-size: 12px;
            top: 75px;
            z-index: -1;
        }

        .notification-item {
            height: 30px;
            line-height: 30px;
            padding-left: 12px;
            margin-top: 0;
            margin-bottom: 0;
            display: none;
        }

            .notification-item .btn-close {
                width: 14px;
                height: 14px;
                margin: auto;
                float: none;
                display: inline-block;
                float: right;
                margin-top: 8px;
                margin-right: 4px;
            }

                .notification-item .btn-close:hover {
                    cursor: pointer;
                }

        .notification-item-checklink {
            color: #3665ad;
        }

        #top-hint {
            background: #fff29d;
        }

        .top-hint-close-button {
            display: block;
            float: right;
            margin-right: 20px;
        }

            .top-hint-close-button:hover {
                cursor: pointer;
            }

        .top-hint-mainPart {
            height: inherit;
            float: left;
            width: 1000px;
            height: 38px;
        }

            .top-hint-mainPart > p {
                margin-top: 8px;
                margin-bottom: 0;
                color: #333;
            }

            .top-hint-mainPart:hover {
                cursor: pointer;
            }
    </style>
    <link href="~/Content/css/course-seriesCourseDetail.css" rel="stylesheet" />
    <link href="~/Content/css/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Content/css/SeriesCourseQuestion.css" rel="stylesheet" />
    <link href="~/Content/css/enroll.css" rel="stylesheet" />
    <link href="~/Content/css/detail.css" rel="stylesheet" />
    <link href="~/Content/css/codes.css" rel="stylesheet" />

    <script src="http://hm.baidu.com/hm.js?cb581c4d338ec0f3b1ae74d12dad369a"></script>
    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?cb581c4d338ec0f3b1ae74d12dad369a";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();

    </script>
</head>
<body>

    <header class="navbar">
        <div class="container">
            <h1 class="navbar-brand"><a href="/Home/Index"><img src="http://boolan.com/img/boolan-logo.png"></a></h1>
            <nav class="nav navbar-nav">
                <ul>
                    <li><a href="/Home/Index" class="active">首页</a></li>
                    <li><a href="/Home/Boutique">精品课程</a></li>
                    <li><a href="/Home/GeekClass">极客班</a></li>
                    <li><a href="/Admin/Showteacher">专家名师</a></li>
                </ul>
            </nav>
            @{
                if (Session["User"] != null)
                {
                    if (Convert.ToInt32(Session["RoleId"]) == 0)
                    {
                        <figure class="avatar navbar-avatar dd-menu">
                            @{
                        var ddd = Session["User"] == null ? "" : (Session["User"] as LeEdu.MODEL.UserInfo).Avatar;
                        if (ddd == null)
                        {
                            <img class="dd-menu-trigger" src="~/Content/img/default-head-image.png" />
                        }
                        else
                        {
                            <img class="dd-menu-trigger" src="~/Img/@ddd" />
                        }

                            }

                            <ul>
                                @{var c = (Session["User"] as LeEdu.MODEL.UserInfo).UserInfoId; }
                                <li>
                                    <a href="/Home/Personage/@c">
                                        <img src="/Content/Index/img/setting.png" /><span>个人设置</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/my/Index">
                                        <img src="/Content/Index/img/messages.png" /><span>我的教学</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/Home/Exit">
                                        <img src="/Content/Index/img/signout.png" /><span>注销登录</span>
                                    </a>
                                </li>
                                <li>
                                    <a href="/Admin/Index">
                                        <img src="/Content/Index/img/signout.png" /><span>后台管理</span>
                                    </a>
                                </li>
                            </ul>
                            <figcaption style="height:75px;"><span>@Session["Uname"]</span></figcaption>
                        </figure>
                    }
                    else
                        if (Convert.ToInt32(Session["RoleId"]) == 1 || Convert.ToInt32(Session["RoleId"]) == 2)
                        {
                            <figure class="avatar navbar-avatar dd-menu">
                                @{
                            var ddd = Session["User"] == null ? "" : (Session["User"] as LeEdu.MODEL.UserInfo).Avatar;
                            if (ddd == null)
                            {
                                <img class="dd-menu-trigger" src="~/Content/img/default-head-image.png" />
                            }
                            else
                            {
                                <img class="dd-menu-trigger" src="~/Img/@ddd" />
                            }

                                }

                                <ul>
                                    @{var c = (Session["User"] as LeEdu.MODEL.UserInfo).UserInfoId; }
                                    <li>
                                        <a href="/Home/Personage/@c">
                                            <img src="/Content/Index/img/setting.png" /><span>个人设置</span>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="/Order/MyOrder">
                                            <img src="~/Content/images/Index2.png" />
                                            <span>我的订单</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="/my/Index">
                                            <img src="/Content/Index/img/messages.png" /><span>我的学习</span>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="/Login/Index">
                                            <img src="/Content/Index/img/signout.png" /><span>注销登录</span>
                                        </a>
                                    </li>


                                </ul>
                                <figcaption style="height:75px;"><span>@Session["Uname"]</span></figcaption>
                            </figure>
                        }
                }
                else
                {
                    <div class="navbar-button-group button-group">
                        <ul>
                            <li>

                                <a class="button" href="/Register/Index">注册</a>

                            </li>


                            <li><a class="button-blue" href="/Login/Index">登录</a></li>

                        </ul>
                    </div>} }
        </div>
    </header>
    <div id="main">
        <div id="topHeaderWrapper">
            <div id="topHeaderContent" style="height:264px;">
                <div id="topHeaderContentLeft">
                    <img id="scourse-thumb" src="~/Content/images/@ViewBag.course.CImage">
                    <div id="scourse-intro">
                        <div id="courseTitle" class="title22">@ViewBag.course.CoursesName</div>
                        <div id="scourse-price" class="orangecontent">


                            <p class="notice14">优惠价：<span class="orangecontent" style="font-size:22px; font-weight:bold;">￥@ViewBag.course.CPrice</span></p>



                        </div>
                        <div id="scourse-benifits" class="notice16">
                            @* <p style="margin-bottom: 6px;">
                                    本课学员可享受：
                                </p>
                                <p>
                                    <span class="benifits-item"><span class="benifits-dot">·</span>课程视频</span>
                                    <span class="benifits-item"><span class="benifits-dot">·</span>线上答疑</span>
                                    <span class="benifits-item"><span class="benifits-dot">·</span>资源下载</span>
                                    <span class="benifits-item"><span class="benifits-dot">·</span>线下活动</span>
                                </p>*@
                        </div>
                        @*<div id="scourse-benifits" class="notice16">*@
                        @*<p style="margin-bottom: 6px;">
                                适应人群：
                            </p>
                            <p>
                                <span class="benifits-item"><span class="benifits-dot">·</span></span>

                            </p>*@
                        @*</div>*@

                        <div id="scourse-buttons">
                            <a href="/Home/ClassPay/@ViewBag.course.CoursesId">
                                <div class="mbtn bluebtn" id="scourse-btn-buy">购买课程</div>
                            </a>
                            <a @*target="_blank"*@ href="#">
                                <div class="mbtn greenbtn" id="scourse-btn-try">免费试听</div>
                            </a>
                        </div>
                    </div>
                </div>
                <div id="topHeaderContentRight">
                    <div id="enrollInformation">
                        <div id="enrollInformationNumber" class="bluecontent">2423 </div>
                        <div id="enrollInformationTitle" class="bluecontent">人次学习</div>
                    </div>
                </div>
            </div>
        </div>
        <div id="detailContent">
            <div class="detailContentLeft-tags">
                <a href="/Home/ClassHour/@ViewBag.course.CoursesId">
                    <div id="videoSelect" class="detailContentLeft-video-tag">视频教程</div>
                </a>
                <a href="/Home/question">
                    <div id="questionSelect" class="detailContentLeft-video-tagSelect">互动问答</div>
                </a>
                <a href="/Home/download">
                    <div id="detail-resource-tab" class="detailContentLeft-video-tag">资源下载</div>
                </a>
            </div>

            <!--呈现某个系列课程的具体内容页面-->
            <div id="detailContentLeft-question-list">

                <div id="question-list-left">
                    <div id="question-ask">
                        <div class="question-nav-title">
                            <a href="/Home/question"><span class="detial13">问答区</span></a>
                            <span class="detial13">&gt;</span>
                            <a href="/Home/question?isanswered=0"><span class="detial13">未回答</span></a>
                        </div>
                        @{
                            var cc = Session["User"] == null ? "" : (Session["User"] as LeEdu.MODEL.UserInfo).Avatar;
                            if (cc == null)
                            {

                                <img id="ask-question-headimg" src="~/Content/img/default-head-image.png">
                            }
                            else
                            {
                                <img id="ask-question-headimg" src="~/Img/@cc">
                            }

                        }
                        <div id="ask-question-right">
                           
                            <form style="margin: 0px" action="/Home/Addquestion" id="askQuestionForm" method="post">
                                <textarea id="ask-question-input" placeholder="在这里输入你的问题" name="Content"></textarea>
                                @*<input id="questionContents" name="Content" type="hidden">
                                    <input id="sectionID" name="sectionID" type="hidden">
                                    <input id="seriseCourseID" name="seriseCourseID" value="40" type="hidden">*@
                                @Html.Hidden("CPeople", Session["Uname"])
                                @Html.Hidden("PostTime", DateTime.Now)
                                @*@(Model.CType==0?"未回答":"已回答")*@
                                @*@Html.Hidden("Talker")*@

                                <div id="ask-question-bottomleft">
                                    <div id="course-select">
                                        <span class="detial13">课程：</span>

                                        <select id="course-section-select"  name="HourId">
                                            <option value="0" class="dianji">全部</option>
                                            @foreach (var item in ViewBag.list as List<LeEdu.MODEL.Hour>)
                                            {
                                                <option value="@item.HourId" class="dianji">@item.HTitle</option>


                                            }
                                        </select>


                                    </div>
                                </div>

                                <div id="ask-question-bottomright">
                                    <div id="ask-question-submit" class="sbtn bluebtn">提问</div>
                                    <div id="ask-question-warning" class="orangecontent">不能为空！</div>
                                </div>
                            </form>

                        </div>

                    </div>
                </div>


                <div id="question-list-right">
                    <div id="question-ask-button-wrapper">
                        @*<a href="/course/newquestion" target="_blank">
                                <div id="question-ask-button" class="lbtn bluebtn">
                                    我要提问
                                </div>
                            </a>*@
                        @*<div style="border-bottom: 1px solid #ddd"></div>*@
                    </div>
                    <div id="hottest-questions">
                        <div id="hottest-questions-title" class="notice16">
                            热门问题
                        </div>
                        <div id="hottest-questions-list">
                            <a href="/course/question/4473" target="_blank">
                                <div class="questions-list-item notice14" questionid="4473"><span class="questions-list-dot">·</span>dfsgf d ff</div>
                            </a>
                            <a href="/course/question/4477" target="_blank">
                                <div class="questions-list-item notice14" questionid="4477"><span class="questions-list-dot">·</span>ffds</div>
                            </a>
                            <a href="/course/question/4479" target="_blank">
                                <div class="questions-list-item notice14" questionid="4479"><span class="questions-list-dot">·</span>你好好的 啊</div>
                            </a>
                            <a href="/course/question/4480" target="_blank">
                                <div class="questions-list-item notice14" questionid="4480"><span class="questions-list-dot">·</span>是的方式发送到答复是范德萨发大水士大夫士大夫</div>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            <div id="scourse-forbid-dialog" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static">
                <div class="modalTitleContent">
                    <div class="modalTitle">提示</div>
                    <div class="modalCloseButton"></div>
                    <div class="clearBoth"></div>
                </div>
                <div id="scourse-forbid-content">
                    <div class="notice16" id="scourse-forbid-title">
                        你尚未购买本课程，请购买后观看
                    </div>
                    <div class="mbtn bluebtn" id="scourse-forbid-button">知道了</div>
                </div>
            </div>
        </div>
        <input type="hidden" value="40" id="courseID">
    </div>

    <footer class="footer">
        <div class="footer-row-1">
            <div class="container">
                <div class="row">
                    <section class="col-5">
                        <h2>乐知教育,高端IT在线学习平台</h2>
                        <nav>
                            <ul>
                                <li><a target="_blank" href="#">关于博览</a><span>&nbsp;|&nbsp;</span></li>
                                <li><a target="_blank" href="#">加入我们</a><span>&nbsp;|&nbsp;</span></li>
                                <li><a target="_blank" href="#">联系我们</a><span>&nbsp;|&nbsp;</span></li>
                                <li><a target="_blank" href="#">意见反馈</a></li>
                            </ul>
                        </nav>
                    </section>
                    <section class="col-5 footer-companion">
                        <h2>合作伙伴</h2>
                        <nav>
                            <ul>
                                <li><a href="#" target="_blank"><img src="/Content/Index/img/yunKeTang.png"></a> </li>
                                <li><a href="#" target="_blank"><img src="/Content/Index/img/ppCloud.png"></a></li>
                                <li><a href="#" target="_blank"><img src="http://boolan.com/img/shareLayout/google.png" style="display: none !important;"></a></li>
                                <li><a href="#" target="_blank"><img src="/Content/Index/img/microsoft.png"></a></li>
                            </ul>
                        </nav>
                    </section>
                    <div class="col-2 footer-phone-email">
                        <p class="phone">+400-886-0806</p>
                        <p class="email">service@boolan.com</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer-row-2">
            <div class="container">
                <div class="row">
                    <p class="col-10">©2015 boolan.com 乐知教育 版权所有&nbsp;&nbsp;&nbsp;&nbsp;温故知新（上海）教育科技有限公司&nbsp;&nbsp;&nbsp;&nbsp;沪ICP备15014563号</p>
                    <nav class="col-2">
                        <ul>
                            <li><a target="_blank" href="http://boolan.com/company/feedback"><img src="/Content/Index/img/feedback.png"></a></li>
                            <li><a href="tencent://message/?uin=281101184&Site=www.qq.com&Menu=yes"><img src="/Content/Index/img/qq.png"></a></li>
                            <li><a href="http://weibo.com/boolan" target="_blank"><img src="/Content/Index/img/weibo.png"></a></li>
                        </ul>
                    </nav>
                </div>
            </div>
        </div>
    </footer>
    <script src="~/Content/js/jquery-2.1.4.min.js"></script>
    <script src="~/Content/js/jquery.form.js"></script>
    <script src="~/Content/js/auto_textarea.js"></script>
    <script src="~/Content/js/popup_tip.js"></script>

    <!-- 实现导航栏的下拉菜单-->
    <script src="~/Content/js/dropDownMenu.js"></script>

    <!-- 实现消息操作 -->
    <script>
        $(function () {

            //通过轮询查看是否有新消息
            function longPolling() {
                $.ajax({
                    url: "/MessageCenter/AnyNewMessage",
                    type: "POST",
                    dataType: "json",
                    cache: false,
                    timeout: 5000,
                    error: function (XMLHttpRequest, textStatus, errorThrown) {
                        if (textStatus == "timeout") {
                            //请求超时
                        } else {
                            //其他错误
                        }

                    },

                    success: function (data, textStatus) {
                        if (data != undefined && data.Status == "success" && data.Message == "ok") {
                            showMessage(data.Data);
                        }
                    }
                });
            }

            setInterval(longPolling, 10000);


            //<p class="notification-item">您有3条新回复&nbsp;<a class="notification-item-checklink" href="#">查看</a><a href="#"><img class="btn-close" src="~/img/close.png" /></a></p>
            //<p class="notification-item">您有5条新系统消息&nbsp;<a class="notification-item-checklink" href="#">查看</a><a href="#"><img class="btn-close" src="~/img/close.png" /></a></p>

            //显示新消息
            function showMessage(data) {
                if (data.NewOfficialCount > 0) {
                    $("#official-notification span").text("您有" + data.NewOfficialCount + "条新系统消息");
                    $("#official-notification .btn-close").click(clearOfficialMessage);
                    $("#official-notification").show();
                }

                if (data.NewReplyCount > 0) {
                    $("#reply-notification span").text("您有" + data.NewReplyCount + "条新回复");
                    $("#reply-notification .btn-close").click(clearReplyMessage);
                    $("#reply-notification").show();
                }
            }

            //当点击查看按钮后，隐藏消息提醒，并向服务器发送请求，消除未读消息
            function clearReplyMessage() {
                $("#reply-notification").hide();
                $.post("/MessageCenter/ClearReply");
            }

            function clearOfficialMessage() {
                $("#official-notification").hide();
                $.post("/MessageCenter/ClearOfficial");
            }

        });
    </script>
    <!--实现顶部广告条-->
    <script src="~/Content/js/tophint.js"></script>
    <script src="~/Content/js/jquery.min.js"></script>
    <script src="~/Content/js/SeriesCourses.js"></script>
    <script src="~/Content/js/bootstrap.min.js"></script>
    <script src="~/Content/js/seriesCourseQuestion.js"></script>

</body>
</html>

